package yunjiao.designpatterns.visitor.example2.items;

import yunjiao.designpatterns.visitor.example2.ShopVisitor;

/**
 * TODO
 *
 * @author yangyunjiao
 */
public interface ShopItem {
    String getName();
    double getPrice();
    double getWeight();
    ShopItemCategory getCategory();

    // will accept different visitors
    // every visitor type will have its own defined discount
    // and hence will differ the final cost of the item.
    double accept(ShopVisitor visitor);
}
